<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2019/6/15 0015
 * Time: 13:58
 */

namespace app\admin\validate;


use think\Validate;

class Beili extends Validate
{
    protected $rule = [
        'data'  =>'',
        'id'    =>'require',
        'num'   =>'require|integer',
    ];

    protected $message = [
        'id.require'    =>  '请选择参数项',
        'num.require'   =>  '请输入参数值',
        'num.integer'   =>  '请输入数字值',
    ];

    protected $scene = [
        'beililist'     =>  ['data'],
        'beilidetail'   =>  ['id'],
        'beilidata'     =>  ['data'],
        'beiliset'      =>  ['id','num'],
        'beiliprice'    =>  ['data'],
    ];
}